﻿namespace WebApplication1
{
    public class MyIHostedService : IHostedService
    {
        private IServiceProvider _provider { get; }

        public MyIHostedService(IServiceProvider provider)
        {
            this._provider = provider;
        }

        Task IHostedService.StartAsync(CancellationToken cancellationToken)
        {


            return Task.CompletedTask;
        }

        Task IHostedService.StopAsync(CancellationToken cancellationToken)
        {
            cancellationToken.ThrowIfCancellationRequested();
            return Task.CompletedTask;
        }
    }
}
